#include "els.h"
int ELSAPI_base64_capi_b64encode(els_VmObj* vm); // capi_b64encode(s:str)
int ELSAPI_base64_capi_b64decode(els_VmObj* vm); // capi_b64decode(s:str)
int ELSAPI_base64_capi_b64encodep(els_VmObj* vm); // capi_b64encodep(p:ptr, len:int)
#ifdef ELS_CONF_TOKEN_EN
static const char LibScript[]={
105,109,112,111,114,116,40,34,115,116,100,108,105,98,34,41,10,
10,
98,97,115,101,54,52,32,61,32,123,10,
10,
125,10,
10,
100,101,102,32,98,97,115,101,54,52,46,101,110,99,111,100,101,40,115,41,58,10,
32,32,32,32,114,116,32,99,97,112,105,95,98,54,52,101,110,99,111,100,101,40,115,41,10,
59,10,
10,
100,101,102,32,98,97,115,101,54,52,46,100,101,99,111,100,101,40,115,41,58,10,
32,32,32,32,114,116,32,99,97,112,105,95,98,54,52,100,101,99,111,100,101,40,115,41,10,
59,10,
10,
100,101,102,32,98,97,115,101,54,52,46,101,110,99,111,100,101,112,40,112,44,32,108,101,110,41,58,10,
32,32,32,32,114,116,32,99,97,112,105,95,98,54,52,101,110,99,111,100,101,112,40,112,44,32,108,101,110,41,10,
59,10,
10,
98,97,115,101,54,52,46,-25,-68,-106,-25,-96,-127,32,61,32,98,97,115,101,54,52,46,101,110,99,111,100,101,10,
98,97,115,101,54,52,46,-24,-89,-93,-25,-96,-127,32,61,32,98,97,115,101,54,52,46,100,101,99,111,100,101,112,10,
98,97,115,101,54,52,46,-25,-68,-106,-25,-96,-127,-26,-116,-121,-23,-110,-120,32,61,32,98,97,115,101,54,52,46,101,110,99,111,100,101,112,10,
10,
0};
#endif
void ElsLib_base64_libinit(els_VmObj *vm){
	vm_register(vm,"capi_b64encode",ELSAPI_base64_capi_b64encode);
	vm_register(vm,"capi_b64encodep",ELSAPI_base64_capi_b64encodep);
	vm_register(vm,"capi_b64decode",ELSAPI_base64_capi_b64decode);
	#ifdef ELS_CONF_TOKEN_EN
		vm_dostring(vm,LibScript);
	#endif
};
